package com.saturn.action.sldb.discussion;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.saturn.app.web.IAction;
import com.saturn.app.web.IView;
import com.saturn.app.web.view.JspView;
import com.saturn.sldb.Discussion;

public class QueryDiscussionToPrintAction implements IAction{
	@Override
	public IView execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		String id = request.getParameter("id");
		Discussion vo = Discussion.get(id);
		request.setAttribute("discussion", vo);
		return new JspView("/app/sldb/discussion/apply/print.jsp");
	}
	@Override
	public String requestMapping() {
		return "/app/sldb/discussion/queryDiscussionToPrint.action";
	}
}
